package com.zsc.wxm.ysh.anjo.service.base.model.resources.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 描述：
 *
 * @author playmaker
 * @since 2021/3/13 1:12
 */
@Data
@NoArgsConstructor
public class AdvertiseDTO implements Serializable {
    private static final long serialVersionUID = -1378367090626461984L;

    private Long id;

    @ApiModelProperty("资讯图片")
    private MultipartFile image;

    @ApiModelProperty("资料链接")
    private String url;

    @ApiModelProperty("标题")
    @NotBlank(message = "标题不能为空")
    private String title;

    @ApiModelProperty("排序字段")
    @NotNull(message = "排序字段不能为空")
    private Integer sort;

    @ApiModelProperty("开启时间")
    @NotNull(message = "开启时间不能为空")
    private LocalDateTime startTime;

    @ApiModelProperty("结束时间")
    @NotNull(message = "结束时间不能为空")
    private LocalDateTime endTime;

    @ApiModelProperty("状态")
    private Integer status;
}
